﻿using Autofac;
using project.B12.application.ViewModels;
using project.B12.application.ViewModels.Dialogs;
using project.B12.application.ViewModels.Setting;
using project.B12.application.Views.Dialogs;
using project.B12.ViewModels;

namespace project.B12.application.Ioc
{
    public class ViewModelLocator
    {
        public static PublicResourceViewModel PublicResourceViewModel => IocContainer.Instance.Resolve<PublicResourceViewModel>();//公共资源
        public static MainWindowViewModel MainWindowViewModel => IocContainer.Instance.Resolve<MainWindowViewModel>();//主窗体框架

        public static MainViewModel MainViewModel => IocContainer.Instance.Resolve<MainViewModel>();
        public static LoginViewModel LoginViewModel => IocContainer.Instance.Resolve<LoginViewModel>();
      
        public static MonitorViewModel MonitorViewModel => IocContainer.Instance.Resolve<MonitorViewModel>();
        public static AddSampleViewModel AddSampleViewModel => IocContainer.Instance.Resolve<AddSampleViewModel>();
        public static LogViewModel LogViewModel => IocContainer.Instance.Resolve<LogViewModel>();
        public static AnalyseViewModel AnalyseViewModel => IocContainer.Instance.Resolve<AnalyseViewModel>();
        public static UserSettingViewModel UserSettingViewModel => IocContainer.Instance.Resolve<UserSettingViewModel>();
        public static DeviceSettingViewModel DeviceSettingViewModel => IocContainer.Instance.Resolve<DeviceSettingViewModel>();
        public static ResetPasswordViewModel ResetPasswordViewModel => IocContainer.Instance.Resolve<ResetPasswordViewModel>();
        public static ExpirationTimeViewModel ExpirationTimeViewModel => IocContainer.Instance.Resolve<ExpirationTimeViewModel>();
        public static LanguageSettingViewModel LanguageSettingViewModel => IocContainer.Instance.Resolve<LanguageSettingViewModel>();

        public static AddPlateIdViewModel AddPlateIdViewModel => IocContainer.Instance.Resolve<AddPlateIdViewModel>();
        
        public static DBDataViewModel DBDataViewModel=>IocContainer.Instance.Resolve<DBDataViewModel>();

        public static BacteriaViewModel BacteriaViewModel => IocContainer.Instance.Resolve<BacteriaViewModel>();

        public static MedicineViewModel MedicineViewModel => IocContainer.Instance.Resolve<MedicineViewModel>();

        public static SIRViewModel SIRViewModel => IocContainer.Instance.Resolve<SIRViewModel>();

        public static ExcelExportViewModel ExcelExportViewModel => IocContainer.Instance.Resolve<ExcelExportViewModel>();
        public static DisinfectionProtectionViewModel DisinfectionProtectionViewModel => IocContainer.Instance.Resolve<DisinfectionProtectionViewModel>();
        public static ProjectRuleSettingViewModel ProjectRuleSettingViewModel => IocContainer.Instance.Resolve<ProjectRuleSettingViewModel>();
        public static SpecialSampleViewModel SpecialSampleViewModel => IocContainer.Instance.Resolve<SpecialSampleViewModel>();
        public static ReportExportTemplateViewModel ReportExportTemplateViewModel => IocContainer.Instance.Resolve<ReportExportTemplateViewModel>();

    }
}